package com.cskaoyan._05protected.another;

import com.cskaoyan._05protected.one.CurrentClazz;
import com.cskaoyan._05protected.one.SamePackageSonClazz;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/9 11:03
 **/
/*
不同包下的非子类
 */
public class AnotherPackageAnotherClazz {
    public static void main(String[] args) {
        // 创建父类对象访问 --- > 不行
        CurrentClazz cc = new CurrentClazz();
        //System.out.println(cc.a);

        // 创建子类的"兄弟"对象去访问---> 不行
        AnotherPackageSonClazz as = new AnotherPackageSonClazz();
        // System.out.println(as.a);

        // 创建子类自身对象去访问---->不行
        SamePackageSonClazz ss = new SamePackageSonClazz();
        // System.out.println(ss.a);
    }
}
